<?php echo doctype('html4-strict');?>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <link rel="icon" type="image/png" href="<?php echo base_url()?>/img/favicon.png" />
        <title>Dăruiesc. Loghează-te pentru a intra în modulul de administrare.</title>

        <style type="text/css">
            body{
                background: white;
            }

            div#login{
                width:180px;
                margin:50px auto 10px auto;
                text-align: center;
                font-size: 15px;
                font-weight: bold;
            }
            
            div.error{
                width:100%;
                text-align: center;
                color:red;
                font-size: 14px;
            }
        </style>
    </head>

    <body>

        <form method="post" action="<?php echo base_url()?>index.php/login/check_login_data">
            <div id="login">
                <div>
                    Administrator:<input type="text" name="username" value="<?php echo set_value('username') ?>" style="width:175px;" />
                </div>
                <div style="margin-top:5px;">
                    Parola:<input type="password" name="password" style="width:175px" />
                </div>
                <div style="margin-top:3px; text-align:right;">
                    <input type="submit" value="Intră" style="width:80px;" />
                </div>
            </div>
            <?php echo validation_errors(); ?>
        </form>

    </body>
</html>